/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package simulator.engine;

/**
 * this class is used in the structure class that is used in the inventory class
 *
 * @author 490060
 */
public class Furniture 
{
    private float energyUsage;
    private int furnitureID, quantity;
    private String category, name;

    
    public Furniture(int furnitureID, int quantity, String category, String name, float usage)
    {
        this.furnitureID = furnitureID;
        this.quantity = quantity;
        this.name = name;
        this.category = category;
        this.energyUsage = usage;
        
    }
    
    /**
     * adds the quantity inserted to the quantity already set
     */
    public void setQuantity(int quantity)
    {
        this.quantity += quantity;
    }
    
    public int getItemID()
    {
        return furnitureID;
    }
    
    public String getCategory()
    {
        return category;
    }
    
    public float getMaxEnergyUsage()
    {
        return energyUsage * quantity;
    }
    
}
